#
# defaults
#

ifndef ENCAP_OFFLOAD
export ENCAP_OFFLOAD=0
endif

ifndef ATH_TX_COMPACT
export ATH_TX_COMPACT=0
endif

ifndef QCA_OL_TX_CACHEDHDR
export QCA_OL_TX_CACHEDHDR=0
endif

ifndef MGMT_HTT_ENABLE
export MGMT_HTT_ENABLE=0
endif

ifndef ATH_SW_WOW_SUPPORT
export ATH_SW_WOW_SUPPORT=0
endif

ifndef NBUF_PREALLOC_POOL
export NBUF_PREALLOC_POOL=0
endif

ifndef ATH_CAP_DYNTURBO
export ATH_CAP_DYNTURBO=0
endif

ifndef ATH_CAP_TPC
export ATH_CAP_TPC=0
endif

ifndef ATH_CAP_CWM
export ATH_CAP_CWM=1
endif

ifndef ATH_SUPPORT_CFG_8K
export ATH_SUPPORT_CFG_8K=0
endif

ifndef ATH_CHAINMASK_SELECT
export ATH_CHAINMASK_SELECT=1
endif

ifndef ATH_FORCE_PPM
export ATH_FORCE_PPM=0
endif

ifndef ATH_FORCE_BIAS
export ATH_FORCE_BIAS=0
endif

ifndef AR5416_EMULATION
export AR5416_EMULATION=0
endif

ifndef AR9100
export AR9100=0
endif

ifndef ATH_RXBUF
export ATH_RXBUF=512
endif

ifndef ATH_SUPPORT_DFS
export ATH_SUPPORT_DFS=1
endif

ifndef ATH_SUPPORT_CWM
export ATH_SUPPORT_CWM=1
endif

ifndef ATH_SUPPORT_SPECTRAL
export ATH_SUPPORT_SPECTRAL=0
endif

ifndef ATH_SUPPORT_ICM
export ATH_SUPPORT_ICM=0
endif

ifndef ATH_SUPPORT_VLAN
export ATH_SUPPORT_VLAN=1
endif

ifndef ATH_TX_INACT_TIMER
export ATH_TX_INACT_TIMER=0
endif

ifndef ATH_WPS_IE
export ATH_WPS_IE=1
endif

ifndef ATH_CAP_AMSDU
export ATH_CAP_AMSDU=1
endif

ifndef ATH_SUPPORT_UAPSD
export ATH_SUPPORT_UAPSD=1
endif

ifndef ATH_SUPPORT_DESCFAST
export ATH_SUPPORT_DESCFAST=1
endif

ifndef ATH_SUPPORT_SHARED_IRQ
export ATH_SUPPORT_SHARED_IRQ=0
endif

ifndef ATH_SUPPORT_FLOWMAC_MODULE
export ATH_SUPPORT_FLOWMAC_MODULE=0
endif

ifndef ATH_SUPPORT_AGGR_BURST
export ATH_SUPPORT_AGGR_BURST=1
endif

ifndef BUILD_AP
export BUILD_AP=1
endif

ifndef BUILD_UMAC
export BUILD_UMAC=1
endif

ifndef UMAC_SUPPORT_AP_POWERSAVE
export UMAC_SUPPORT_AP_POWERSAVE=1
endif

ifndef UMAC_SUPPORT_STA_POWERSAVE
export UMAC_SUPPORT_STA_POWERSAVE=1
endif

ifndef UMAC_SUPPORT_POWERSAVE_QUEUE
export UMAC_SUPPORT_POWERSAVE_QUEUE=1
endif

ifndef LMAC_SUPPORT_POWERSAVE_QUEUE
export LMAC_SUPPORT_POWERSAVE_QUEUE=0
endif

ifndef ATH_FRAG_TX_COMPLETE_DEFER
export ATH_FRAG_TX_COMPLETE_DEFER=0
endif

ifndef UMAC_SUPPORT_P2P_GO_POWERSAVE
export UMAC_SUPPORT_P2P_GO_POWERSAVE=0
endif

ifndef UMAC_SUPPORT_CCMP_SW_CRYPTO
export UMAC_SUPPORT_CCMP_SW_CRYPTO=1
endif

ifndef UMAC_SUPPORT_TKIP_SW_CRYPTO
export UMAC_SUPPORT_TKIP_SW_CRYPTO=1
endif

ifndef ATH_SUPPORT_WEP_MBSSID
export ATH_SUPPORT_WEP_MBSSID=0
endif

ifndef UMAC_SUPPORT_RESMGR_SM
export UMAC_SUPPORT_RESMGR_SM=0
endif

ifndef UMAC_SUPPORT_RESMGR
export UMAC_SUPPORT_RESMGR=0
endif

ifndef UMAC_SUPPORT_RESMGR_OC_SCHED
export UMAC_SUPPORT_RESMGR_OC_SCHED=0
endif

ifndef UMAC_SUPPORT_RIJNDAEL
export UMAC_SUPPORT_RIJNDAEL=1
endif

ifndef UMAC_SUPPORT_ACS
export UMAC_SUPPORT_ACS=1
endif

ifndef UMAC_SUPPORT_WDS
export UMAC_SUPPORT_WDS=1
endif

ifndef UMAC_SUPPORT_NAWDS
export UMAC_SUPPORT_NAWDS=1
endif


ifndef ATH_SUPPORT_TDLS
export ATH_SUPPORT_TDLS=0
export UMAC_SUPPORT_TDLS_PEER_UAPSD=0
export UMAC_SUPPORT_TDLS_CHAN_SWITCH=0
endif

ifndef UMAC_SUPPORT_TDLS_PEER_UAPSD
export UMAC_SUPPORT_TDLS_PEER_UAPSD=0
endif

ifndef UMAC_SUPPORT_TDLS_CHAN_SWITCH
export UMAC_SUPPORT_TDLS_CHAN_SWITCH=0
endif

ifndef ATH_CONFIG_RCPI
export CONFIG_RCPI=0
endif

ifndef UMAC_SUPPORT_STAFWD
export UMAC_SUPPORT_STAFWD=0
endif

ifndef UMAC_SUPPORT_DFS
export UMAC_SUPPORT_DFS=1
endif

ifndef UMAC_SUPPORT_ACL
export UMAC_SUPPORT_ACL=1
endif

ifndef UMAC_SUPPORT_TX_FRAG
export UMAC_SUPPORT_TX_FRAG=1
endif

ifndef UMAC_SUPPORT_RPTPLACEMENT
export UMAC_SUPPORT_RPTPLACEMENT=0
endif

ifndef ATH_SUPPORT_WIFIPOS
export ATH_SUPPORT_WIFIPOS=0
endif

ifndef UMAC_SUPPORT_WIFIPOS_LEANCC
export UMAC_SUPPORT_WIFIPOS_LEANCC=0
endif
ifndef UMAC_SUPPORT_IBSS
export UMAC_SUPPORT_IBSS=1
endif

ifndef UMAC_SUPPORT_BSSLOAD
export UMAC_SUPPORT_BSSLOAD=0
endif

ifndef UMAC_SUPPORT_ADMCTL
export UMAC_SUPPORT_ADMCTL=0
endif

ifndef UMAC_SUPPORT_RRM
export UMAC_SUPPORT_RRM=0
endif

ifndef UMAC_SUPPORT_RRM_DEBUG
export UMAC_SUPPORT_RRM_DEBUG=0
endif

ifndef UMAC_SUPPORT_RRM_MISC
export UMAC_SUPPORT_RRM_MISC=0
endif

ifndef UMAC_SUPPORT_WNM
export UMAC_SUPPORT_WNM=0
endif

ifndef UMAC_SUPPORT_QUIET
export UMAC_SUPPORT_QUIET=0
endif

ifndef UMAC_PER_PACKET_DEBUG
export UMAC_PER_PACKET_DEBUG=0
endif

ifndef UMAC_REPEATER_DELAYED_BRINGUP
export UMAC_REPEATER_DELAYED_BRINGUP=0
endif

ifndef ATH_SUPPORT_ATHVAP_INFO
export ATH_SUPPORT_ATHVAP_INFO=0
endif

ifndef ATH_SUPPORT_TxBF
export ATH_SUPPORT_TxBF=0
endif

ifndef ATH_TxBF_DYNAMIC_LOF_ON_N_CHAIN_MASK
export ATH_TxBF_DYNAMIC_LOF_ON_N_CHAIN_MASK=0
endif

ifndef ATH_SUPPORT_WPA_SUPPLICANT_CHECK_TIME
export ATH_SUPPORT_WPA_SUPPLICANT_CHECK_TIME=0
endif

ifndef ATH_GEN_TIMER
export ATH_GEN_TIMER=0
endif

ifndef ATH_RX_LOOPLIMIT_TIMER
export ATH_RX_LOOPLIMIT_TIMER=0
endif

ifndef ATH_DEBUG
export ATH_DEBUG=1
endif

ifndef ATH_SUPPORT_TSF_TIMER
export ATH_SUPPORT_TSF_TIMER=0
endif

ifndef UMAC_SUPPORT_VAP_PAUSE
export UMAC_SUPPORT_VAP_PAUSE=0
endif

ifndef ATH_VAP_PAUSE_SUPPORT
export ATH_VAP_PAUSE_SUPPORT=0
endif

ifndef USE_MULTIPLE_BUFFER_RCV
export USE_MULTIPLE_BUFFER_RCV=0
endif

ifndef UMAC_SUPPORT_IE_UTILS
export UMAC_SUPPORT_IE_UTILS=0
endif

ifndef UMAC_SUPPORT_TSF_TIMER
export UMAC_SUPPORT_TSF_TIMER=0
endif

ifndef ATH_BEACON_DEFERRED_PROC
export ATH_BEACON_DEFERRED_PROC=0
endif

ifndef ATH_SUPPORT_HS20
export ATH_SUPPORT_HS20=0
endif

ifndef DBGLOG_WQ_BASED
export DBGLOG_WQ_BASED=0
endif

ifndef QCA_BMI_TIMEOUT_CHECK
export QCA_BMI_TIMEOUT_CHECK=0
endif


ifneq ($(strip ${BUILD_ADF}),0)
    ifndef BUILD_ADF
    export BUILD_ADF=1
    endif

    ifndef BUILD_ADF_NET
    export BUILD_ADF_NET=1
    endif

    ifndef BUILD_ADF_DEFER_PVT
    export BUILD_ADF_DEFER_PVT=1
    endif

    ifndef BUILD_ADF_IRQ_PVT
    export BUILD_ADF_IRQ_PVT=1
    endif
endif

ifndef ATH_WLAN_COMBINE
export ATH_WLAN_COMBINE=0
endif

ifndef ATH_NO_SW_CRYPTO
export ATH_NO_SW_CRYPTO=0
endif

ifndef ATH_NO_5G_SUPPORT
export ATH_NO_5G_SUPPORT=0
endif

ifndef IEEE80211_MCAST_ENHANCEMENT
export IEEE80211_MCAST_ENHANCEMENT=1
endif

ifndef ATH_SUPPORT_IQUE
export ATH_SUPPORT_IQUE=0
endif

ifndef  ATH_SUPPORT_AOW
export ATH_SUPPORT_AOW=0
endif

ifndef ATH_SUPPORT_AOW_ES_ADVNCD_RXDEBUG
export ATH_SUPPORT_AOW_ES_ADVNCD_RXDEBUG=0
endif

ifndef ATH_SUPPORT_AOW_ES_ADVNCD_TXDEBUG
export ATH_SUPPORT_AOW_ES_ADVNCD_TXDEBUG=0
endif

ifndef ATH_SUPPORT_AOW_DYNRXTIMEOUT
export ATH_SUPPORT_AOW_DYNRXTIMEOUT=0
endif

ifndef ATH_SUPPORT_AOW_TXSCHED
export ATH_SUPPORT_AOW_TXSCHED=0
endif

ifndef  ATH_SUPPORT_CRDC
export ATH_SUPPORT_CRDC=0
endif

ifndef ATH_SUPPORT_IQUE_EXT
export ATH_SUPPORT_IQUE_EXT=0
endif

ifndef NO_SIMPLE_CONFIG
export NO_SIMPLE_CONFIG=0
endif

ifndef ATH_DEFINE_ENDIAN
export ATH_DEFINE_ENDIAN=1
endif

ifndef ATH_SUPPORT_LINUX_STA
export ATH_SUPPORT_LINUX_STA=0
endif

ifndef ATH_RFKILL
export ATH_RFKILL=0
endif

ifndef ATH_MIB_INTR_FILTER
export ATH_MIB_INTR_FILTER=0
endif

ifndef ATH_SUPPORT_GREEN_AP
export ATH_SUPPORT_GREEN_AP=1
endif

ifndef UMAC_SUPPORT_PROXY_ARP
export UMAC_SUPPORT_PROXY_ARP=0
endif

ifndef UMAC_SUPPORT_DGAF_DISABLE
export UMAC_SUPPORT_DGAF_DISABLE=0
endif

ifndef UMAC_SUPPORT_HS20_L2TIF
export UMAC_SUPPORT_HS20_L2TIF=0
endif

ifndef ATH_SUPPORT_EEEPC
export ATH_SUPPORT_EEEPC=0
endif

ifndef ATH_SUPPORT_WAPI
export ATH_SUPPORT_WAPI=0
endif

ifndef ATH_SUPPORT_UAPSD_RATE_CONTROL
export ATH_SUPPORT_UAPSD_RATE_CONTROL=0
endif

ifndef AH_REGREAD_DEBUG
export AH_REGREAD_DEBUG=0
endif

ifndef ATH_SUPPORT_VOWEXT
export ATH_SUPPORT_VOWEXT=0
endif

ifndef ATH_HW_TXQ_STUCK_WAR
export ATH_HW_TXQ_STUCK_WAR=0
endif

ifndef RX_DEBUG
export RX_DEBUG=1
endif

ifndef WAR_TX_UNDERRUN
export WAR_TX_UNDERRUN=0
endif

ifndef ATH_SUPPORT_VOW_DCS
export ATH_SUPPORT_VOW_DCS=0
endif

ifndef VOW_TIDSCHED
export VOW_TIDSCHED=0
endif

ifndef VOW_LOGLATENCY
export VOW_LOGLATENCY=0
endif

ifndef ATH_SUPPORT_CFEND
export ATH_SUPPORT_CFEND=0
endif

ifndef ATH_SUPPORT_LED
export ATH_SUPPORT_LED=0
endif

ifndef OL_ATH_SUPPORT_LED
export OL_ATH_SUPPORT_LED=0
endif

ifndef OL_ATH_SUPPORT_LED_POLL
export OL_ATH_SUPPORT_LED_POLL=1
endif


ifndef ATH_TX_BUF_FLOW_CNTL
export ATH_TX_BUF_FLOW_CNTL=1
endif

ifndef ATH_TX_DROP_POLICY
export ATH_TX_DROP_POLICY=1
endif

ifndef ATH_VOW_EXT_STATS
export ATH_VOW_EXT_STATS=0
endif

ifndef ATH_SUPPORT_QUICK_KICKOUT
export ATH_SUPPORT_QUICK_KICKOUT=0
endif

ifndef ATH_SUPPORT_EDMA
export ATH_SUPPORT_EDMA=1
endif

ifndef ATH_SUPPORT_AP_WDS_COMBO
export ATH_SUPPORT_AP_WDS_COMBO=0
endif

ifndef ATH_SUPPORT_IBSS
export ATH_SUPPORT_IBSS=1
endif

ifndef ATH_SUPPORT_IBSS_PERSTA_HWKEY
export ATH_SUPPORT_IBSS_PERSTA_HWKEY=1
endif

ifndef ATH_SUPPORT_IBSS_WPA2
export ATH_SUPPORT_IBSS_WPA2=1
endif

ifndef ATH_SWRETRY
export ATH_SWRETRY=0
export ATH_SWRETRY_MODIFY_DSTMASK=0
endif

ifndef ATHEROS_LINUX_PERIODIC_SCAN
export ATHEROS_LINUX_PERIODIC_SCAN=1
endif

ifndef ATHEROS_LINUX_P2P_DRIVER
export ATHEROS_LINUX_P2P_DRIVER=0
endif

ifndef ATH_SUPPORT_P2P
export ATH_SUPPORT_P2P=0
endif

ifndef ATH_SUPPORT_IBSS_HT
export ATH_SUPPORT_IBSS_HT=0
endif
ifndef ATHEROS_LINUX_PERIODIC_SCAN
export ATHEROS_LINUX_PERIODIC_SCAN=1
endif

ifndef ATH_SUPPORT_IBSS_WMM
export ATH_SUPPORT_IBSS_WMM=0
endif

ifndef ATH_SUPPORT_IBSS_NETLINK_NOTIFICATION
export ATH_SUPPORT_IBSS_NETLINK_NOTIFICATION=0
endif

ifndef ATH_SUPPORT_IBSS_PRIVATE_SECURITY
export ATH_SUPPORT_IBSS_PRIVATE_SECURITY=0
endif

ifndef ATH_SUPPORT_IBSS_ACS
export ATH_SUPPORT_IBSS_ACS=0
endif

ifndef REMOVE_PKT_LOG
export REMOVE_PKT_LOG=0
endif

ifndef ATH_SUPPORT_LINUX_VENDOR
export ATH_SUPPORT_LINUX_VENDOR=0
endif

ifndef ATH_RXBUF_RECYCLE
export ATH_RXBUF_RECYCLE=0
endif

ifndef ATH_SUPPORT_IWSPY
export ATH_SUPPORT_IWSPY=0
endif

ifndef UMAC_SUPPORT_VI_DBG
export UMAC_SUPPORT_VI_DBG=0
endif

ifndef ATH_SUPPORT_STATS_APONLY
export ATH_SUPPORT_STATS_APONLY=0
endif

ifndef ATH_WDS_SUPPORT_APONLY
export ATH_WDS_SUPPORT_APONLY=0
endif



ifndef ATH_SUPPORT_DYN_TX_CHAINMASK
export ATH_SUPPORT_DYN_TX_CHAINMASK=0
endif

ifndef ATH_TX_DUTY_CYCLE
export ATH_TX_DUTY_CYCLE=0
endif

ifndef UMAC_SUPPORT_OPMODE_APONLY
export UMAC_SUPPORT_OPMODE_APONLY=0
endif

ifndef ATH_SUPPORT_IBSS_DFS
export ATH_SUPPORT_IBSS_DFS=0
endif

ifndef ATH_LMAC_TXSEQ
export ATH_LMAC_TXSEQ=0
endif

ifndef SA_DEFAULT_ANTENNA
export SA_DEFAULT_ANTENNA=0
endif

ifndef ATH_IBSS_DFS_CHANNEL_SUPPORT
export ATH_IBSS_DFS_CHANNEL_SUPPORT=0
endif

ifndef ATH_HOST_RX_PHY_ERROR
export ATH_HOST_RX_PHY_ERROR=0
endif

ifndef UMAC_SUPPORT_SMARTANTENNA
export UMAC_SUPPORT_SMARTANTENNA=0
endif

ifndef UNIFIED_SMARTANTENNA
export UNIFIED_SMARTANTENNA=0
else
#  Begining of Scorpion specific SA GPIO's
ifndef ATH_GPIOPIN_ANT_SERIAL_STROBE
export ATH_GPIOPIN_ANT_SERIAL_STROBE=0xff
endif
ifndef ATH_GPIOFUNC_ANT_SERIAL_STROBE
export ATH_GPIOFUNC_ANT_SERIAL_STROBE=0xff
endif
ifndef ATH_GPIOPIN_ANT_SERIAL_DATA
export ATH_GPIOPIN_ANT_SERIAL_DATA=0xff
endif
ifndef ATH_GPIOFUNC_ANT_SERIAL_DATA
export ATH_GPIOFUNC_ANT_SERIAL_DATA=0xff
endif
ifndef ATH_GPIOPIN_ANTCHAIN0
export ATH_GPIOPIN_ANTCHAIN0=0xff
endif
ifndef ATH_GPIOPIN_ANTCHAIN1
export ATH_GPIOPIN_ANTCHAIN1=0xff
endif
ifndef ATH_GPIOPIN_ANTCHAIN2
export ATH_GPIOPIN_ANTCHAIN2=0xff
endif
ifndef ATH_GPIOFUNC_ANTCHAIN0
export ATH_GPIOFUNC_ANTCHAIN0=0xff
endif
ifndef ATH_GPIOFUNC_ANTCHAIN1
export ATH_GPIOFUNC_ANTCHAIN1=0xff
endif
ifndef ATH_GPIOFUNC_ANTCHAIN2
export ATH_GPIOFUNC_ANTCHAIN2=0xff
endif
#  End of Scorpion specific SA GPIO's
endif

ifndef ATH_SMARTANTENNA_ROUTE_SWCOM_TO_GPIO
export ATH_SMARTANTENNA_ROUTE_SWCOM_TO_GPIO=0
endif

ifndef ATH_SUPPORT_DESC_CACHABLE
export ATH_SUPPORT_DESC_CACHABLE=0
endif

ifndef UMAC_SUPPORT_APONLY
export UMAC_SUPPORT_APONLY=0
endif

ifndef ATH_SUPPORT_TIDSTUCK_WAR
export ATH_SUPPORT_TIDSTUCK_WAR=0
endif

ifndef ATH_TXQ_BH_LOCK
export ATH_TXQ_BH_LOCK=1
endif

ifndef ATH_BUS_PM
export ATH_BUS_PM=0
endif

ifndef GPIO_PIN_FUNC_0
export GPIO_PIN_FUNC_0=0
endif

ifndef GPIO_PIN_FUNC_1
export GPIO_PIN_FUNC_1=0
endif

ifndef GPIO_PIN_FUNC_2
export GPIO_PIN_FUNC_2=0
endif

ifndef PCI_INTERRUPT_WAR_ENABLE
export PCI_INTERRUPT_WAR_ENABLE=0
endif

ifndef ATH_SUPPORT_DSCP_OVERRIDE
export ATH_SUPPORT_DSCP_OVERRIDE=0
endif
ifndef ATH_ANI_NOISE_SPUR_OPT
export ATH_ANI_NOISE_SPUR_OPT=0
endif

ifndef UMAC_SUPPORT_STA_STATS
export UMAC_SUPPORT_STA_STATS=1
endif

ifndef UMAC_SUPPORT_PERIODIC_PERFSTATS
export UMAC_SUPPORT_PERIODIC_PERFSTATS=0
endif

ifndef UMAC_SUPPORT_CHANUTIL_MEASUREMENT
export UMAC_SUPPORT_CHANUTIL_MEASUREMENT=0
endif

ifndef AP_MULTIPLE_BUFFER_RCV
export AP_MULTIPLE_BUFFER_RCV=0
endif

ifndef ATH_LED_CUSTOMER
export ATH_LED_CUSTOMER=0
endif

ifndef ATH_SUPPORT_RX_PROC_QUOTA
export ATH_SUPPORT_RX_PROC_QUOTA=0
endif

ifndef ATH_GEN_RANDOMNESS
export ATH_GEN_RANDOMNESS=1
endif

ifndef UMAC_SUPPORT_STA_MODE
export UMAC_SUPPORT_STA_MODE=1
endif

ifndef UMAC_SUPPORT_ACFG
export UMAC_SUPPORT_ACFG=0
endif
ifndef ATH_PERF_PWR_OFFLOAD
export ATH_PERF_PWR_OFFLOAD=0
endif

ifndef ATH_11AC_TXCOMPACT
export ATH_11AC_TXCOMPACT=0
endif

ifndef QCA_OL_RX_BATCHMODE
export QCA_OL_RX_BATCHMODE=0
endif

ifndef QCA_OL_11AC_FAST_PATH
export QCA_OL_11AC_FAST_PATH=0
endif

ifndef QCA_OL_SMP_STATS
export QCA_OL_SMP_STATS=0
endif

ifndef QCA_NSS_PLATFORM
export QCA_NSS_PLATFORM=0
endif

ifndef QCA_NSS_NWIFI_MODE
export QCA_NSS_NWIFI_MODE=0
endif

ifndef ATH_OL_11AC_DMA_BURST
export ATH_OL_11AC_DMA_BURST=0
endif

ifndef ATH_OL_11AC_MAC_AGGR_DELIM
export ATH_OL_11AC_MAC_AGGR_DELIM=0
endif

ifndef ATH_HOST_RX_PHY_ERROR
export ATH_HOST_RX_PHY_ERROR=0
endif

ifndef CHECKSUM_OFFLOAD
export CHECKSUM_OFFLOAD=0
endif

ifndef FORCE_LEGACY_PCI_INTERRUPTS
export FORCE_LEGACY_PCI_INTERRUPTS=0
endif

ifndef LOAD_ARRAY_FW
export LOAD_ARRAY_FW=0
endif

ifndef UMAC_SUPPORT_TXDATAPATH_NODESTATS
export UMAC_SUPPORT_TXDATAPATH_NODESTATS=1
endif
ifndef BIG_ENDIAN_HOST
export BIG_ENDIAN_HOST=0
endif

ifndef OL_ATH_SUPPORT_STATS
export OL_ATH_SUPPORT_STATS=1
endif

ifndef ATH_SUPPORT_HYFI_ENHANCEMENTS
export ATH_SUPPORT_HYFI_ENHANCEMENTS=0
endif

ifndef ATH_SUPPORT_WRAP
export ATH_SUPPORT_WRAP=0
endif

ifndef ATH_SUPPORT_WRAP_BRIDGE
export ATH_SUPPORT_WRAP_BRIDGE=0
endif

ifndef WDS_VENDOR_EXTENSION
export WDS_VENDOR_EXTENSION=0
endif

ifndef ATH_VAP_DELETE_ON_RMMOD
export ATH_VAP_DELETE_ON_RMMOD=1
endif

ifndef QCA_OL_SUPPORT_RAWMODE_TXRX
export QCA_OL_SUPPORT_RAWMODE_TXRX=0
endif

ifndef QCA_RAWMODE_OPTIMIZATION_CONFIG
export QCA_RAWMODE_OPTIMIZATION_CONFIG=0
endif

ifndef QCA_SUPPORT_RAWMODE_PKT_SIMULATION
export QCA_SUPPORT_RAWMODE_PKT_SIMULATION=0
endif

#
# Disable following features for offload build till these
# features are testing be feature owners.
#


ifndef GPIO_PIN_FUNC_0
export GPIO_PIN_FUNC_0=0
endif

ifndef GPIO_PIN_FUNC_1
export GPIO_PIN_FUNC_1=0
endif

ifndef GPIO_PIN_FUNC_2
export GPIO_PIN_FUNC_2=0
endif

ifndef ATH_SUPPORT_KEYPLUMB_WAR
export ATH_SUPPORT_KEYPLUMB_WAR=0
endif

ifndef ATH_OL_FAST_CHANNEL_RESET_WAR
export ATH_OL_FAST_CHANNEL_RESET_WAR=0
endif

ifndef ATH_SUPPORT_DEFERRED_NODE_CLEANUP
export ATH_SUPPORT_DEFERRED_NODE_CLEANUP=1
endif

ifndef PCI_PEREGRINE_V2_X86_WAR
export PCI_PEREGRINE_V2_X86_WAR=0
endif


ifndef AH_NEED_TX_DATA_SWAP
export AH_NEED_TX_DATA_SWAP=0
endif

ifndef AH_NEED_RX_DATA_SWAP
export AH_NEED_RX_DATA_SWAP=0
endif

ifndef UMAC_SUPPORT_VOWDBG
export UMAC_SUPPORT_VOWDBG=0
endif

ifndef DUMP_FW_RAM
export DUMP_FW_RAM=0
endif

ifndef ATH_11AC_ACK_POLICY
export ATH_11AC_ACK_POLICY=0
endif

ifndef HTT_RX_DESC_ALIGN_RESERVED
export HTT_RX_DESC_ALIGN_RESERVED=0
endif

ifndef ATH_SUPPORT_CE_BARRIER
export ATH_SUPPORT_CE_BARRIER=0
endif

ifndef LIMIT_RXBUF_LEN_4K
export LIMIT_RXBUF_LEN_4K=1
endif

ifndef ATH_BAND_STEERING
export ATH_BAND_STEERING=0
endif

ifndef QCA_AIRTIME_FAIRNESS
export QCA_AIRTIME_FAIRNESS=0
endif
# When band steering is enabled, ACL support must also be enabled.
ifeq ($(strip ${ATH_BAND_STEERING}),1)
export UMAC_SUPPORT_ACL=1
endif

#
# directives
#
ifeq ($(strip ${WLAN_DEBUG_CMD_SUPPORT}),1)
COPTS+= -DWLAN_DEBUG_CMD_SUPPORT=1
else
COPTS+= -DWLAN_DEBUG_CMD_SUPPORT=0
endif

ifeq ($(strip ${PCI_PEREGRINE_V2_X86_WAR}),1)
COPTS+= -DPCI_PEREGRINE_V2_X86_WAR=1
else
COPTS+= -DPCI_PEREGRINE_V2_X86_WAR=0
endif


ifeq ($(strip ${ATH_OL_FAST_CHANNEL_RESET_WAR}),1)
COPTS+= -DATH_OL_FAST_CHANNEL_RESET_WAR=1
else
COPTS+= -DATH_OL_FAST_CHANNEL_RESET_WAR=0
endif

ifeq ($(strip ${OL_ATH_SUPPORT_STATS}),1)
COPTS+= -DOL_ATH_SUPPORT_STATS=1
else
COPTS+= -DOL_ATH_SUPPORT_STATS=0
endif

ifeq ($(strip ${AP_MULTIPLE_BUFFER_RCV}),1)
COPTS+= -DAP_MULTIPLE_BUFFER_RCV=1
else
COPTS+= -DAP_MULTIPLE_BUFFER_RCV=0
endif

ifeq ($(strip ${ATH_SUPPORT_RX_PROC_QUOTA}),1)
COPTS+= -DATH_SUPPORT_RX_PROC_QUOTA=1
else
COPTS+= -DATH_SUPPORT_RX_PROC_QUOTA=0
endif

ifeq ($(strip ${ENCAP_OFFLOAD}),1)
COPTS+= -DENCAP_OFFLOAD=1
endif

ifeq ($(strip ${ATH_SUPPORT_LINUX_STA}),1)
COPTS+= -DATH_SUPPORT_LINUX_STA=1
endif

ifeq ($(strip ${ATH_RFKILL}),1)
COPTS+= -DATH_RFKILL=1
endif

ifeq ($(strip ${ATH_MIB_INTR_FILTER}),1)
COPTS+= -DATH_MIB_INTR_FILTER=1
endif

ifeq ($(strip ${ATH_SUPPORT_EEEPC}),1)
COPTS+= -DATH_SUPPORT_EEEPC=1
endif

ifneq ($(strip ${ATH_CAP_DYNTURBO}),0)
COPTS+= -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1
endif

ifneq ($(strip ${ATH_CAP_TPC}),0)
COPTS+= -DATH_CAP_TPC=1
endif

ifneq ($(strip ${ATH_CAP_CWM}),0)
COPTS+= -DATH_SUPPORT_CWM=1
endif

ifneq ($(strip ${ATH_CHAINMASK_SELECT}),0)
COPTS+= -DATH_CHAINMASK_SELECT=1
endif

ifneq ($(strip ${ATH_SUPPORT_AGGR_BURST}),0)
COPTS+= -DATH_SUPPORT_AGGR_BURST=1
endif

ifneq ($(strip ${ATH_FORCE_PPM}),0)
COPTS+= -DATH_FORCE_PPM=1
endif

ifneq ($(strip ${ATH_FORCE_BIAS}),0)
COPTS+= -DATH_FORCE_BIAS=1
endif

ifneq ($(strip ${AR5416_EMULATION}),0)
COPTS+= -DAR5416_EMULATION=1
endif

ifneq ($(strip ${AR9100}),0)
COPTS+= -DAR9100=1
endif

COPTS+= -DATH_RXBUF=${ATH_RXBUF}

ifdef ATH_TXBUF
COPTS+= -DATH_TXBUF=${ATH_TXBUF}
endif

ifneq ($(strip ${ATH_SUPPORT_DFS}),0)
COPTS+= -DATH_SUPPORT_DFS=1
endif

ifneq ($(strip ${ATH_SUPPORT_SPECTRAL}),0)
COPTS+= -DATH_SUPPORT_SPECTRAL=1
ifneq ($(strip ${ATH_SUPPORT_ICM}),0)
COPTS+= -DATH_SUPPORT_ICM=1
endif
endif

ifneq ($(strip ${ATH_SUPPORT_VLAN}),0)
COPTS+= -DATH_SUPPORT_VLAN=1
endif

ifneq ($(strip ${ATH_TX_INACT_TIMER}),0)
COPTS+= -DATH_TX_INACT_TIMER=1
endif

ifneq ($(strip ${ATH_RB}),0)
COPTS+= -DATH_RB=1
endif

ifneq ($(strip ${ATH_CAP_AMSDU}),0)
COPTS+= -DATH_AMSDU=1
endif

ifneq ($(strip ${ATH_SUPPORT_UAPSD}),0)
COPTS+= -DATH_SUPPORT_UAPSD=1
endif

ifneq ($(strip ${ATH_SUPPORT_DESCFAST}),0)
COPTS+= -DATH_SUPPORT_DESCFAST=1
endif

ifneq ($(strip ${ATH_SUPPORT_SHARED_IRQ}),0)
COPTS+= -DATH_SUPPORT_SHARED_IRQ=1
endif

ifneq ($(strip ${BUILD_AP}),0)
COPTS+= -DBUILD_AP=1
endif

ifneq ($(strip ${ATH_WLAN_COMBINE}),0)
COPTS+= -DATH_WLAN_COMBINE=1
endif

ifneq ($(strip ${ATH_NO_SW_CRYPTO}),0)
COPTS+= -DATH_NO_SW_CRYPTO=1
endif

ifneq ($(strip ${ATH_NO_5G_SUPPORT}),0)
COPTS+= -DATH_NO_5G_SUPPORT=1
endif

ifneq ($(strip ${IEEE80211_MCAST_ENHANCEMENT}),0)
COPTS+= -DIEEE80211_MCAST_ENHANCEMENT=1
endif

ifneq ($(strip ${ATH_SUPPORT_IQUE}),0)
COPTS+= -DATH_SUPPORT_IQUE=1
endif

ifeq (1, ${QVIT})
COPTS+= -DQVIT -DWDI_EVENT_ENABLE -DTXRX_STATS_LEVEL=2
endif

ifeq (1, ${QVIT_DEBUG})
COPTS+= -DQVIT_DEBUG
endif

ifeq (1, ${QVIT_DEBUG_EVENT})
COPTS+= -DQVIT_DEBUG_EVENT
endif

ifeq (1, ${QVIT_DEBUG_RSP})
COPTS+= -DQVIT_DEBUG_RSP
endif

ifneq ($(strip ${ATH_SUPPORT_AOW}),0)
COPTS+= -DATH_SUPPORT_AOW=1
COPTS+= -DATH_GEN_TIMER=1
ifneq ($(strip ${ATH_SUPPORT_AOW_ES_ADVNCD_RXDEBUG}),0)
COPTS+= -DATH_SUPPORT_AOW_ES_ADVNCD_RXDEBUG=1
endif
ifneq ($(strip ${ATH_SUPPORT_AOW_ES_ADVNCD_TXDEBUG}),0)
COPTS+= -DATH_SUPPORT_AOW_ES_ADVNCD_TXDEBUG=1
endif
ifneq ($(strip ${ATH_SUPPORT_AOW_DYNRXTIMEOUT}),0)
COPTS+= -DATH_SUPPORT_AOW_DYNRXTIMEOUT=1
endif
ifneq ($(strip ${ATH_SUPPORT_AOW_TXSCHED}),0)
COPTS+= -DATH_SUPPORT_AOW_TXSCHED=1
endif
endif

ifneq ($(strip ${ATH_SUPPORT_CRDC}),0)
COPTS+= -DATH_SUPPORT_CRDC=1
endif

ifneq ($(strip ${ATH_SUPPORT_IQUE_EXT}),0)
COPTS+= -DATH_SUPPORT_IQUE_EXT=1
endif

ifneq ($(strip ${ATH_SUPPORT_WAPI}),0)
COPTS+= -DATH_SUPPORT_WAPI=1
endif

ifneq ($(strip ${ATH_SUPPORT_UAPSD_RATE_CONTROL}),0)
COPTS+= -DATH_SUPPORT_UAPSD_RATE_CONTROL=1
endif

ifneq ($(strip ${AH_REGREAD_DEBUG}),0)
COPTS+= -DAH_REGREAD_DEBUG=1
endif

ifneq ($(strip ${ATH_WPS_IE}),0)
COPTS+= -DATH_WPS_IE=1
endif

ifneq ($(strip ${NO_SIMPLE_CONFIG}),0)
COPTS+= -DNO_SIMPLE_CONFIG=1
endif

ifneq ($(strip ${ATH_SUPPORT_HYFI_ENHANCEMENTS}),0)
ifneq ($(strip ${ATH_SUPPORT_IQUE}),0)
COPTS+= -DATH_SUPPORT_HYFI_ENHANCEMENTS=1
endif
endif

ifneq ($(strip ${BUILD_UMAC}),0)
COPTS+= -DUMAC
endif

ifneq ($(strip ${BUILD_ADF}),0)
COPTS+= -DADF_SUPPORT=1
endif

ifneq ($(strip ${ATH_SUPPORT_VOWEXT}),0)
COPTS+= -DATH_SUPPORT_VOWEXT=1
endif

ifneq ($(strip ${ATH_HW_TXQ_STUCK_WAR}),0)
COPTS+= -DATH_HW_TXQ_STUCK_WAR=1
endif

ifneq ($(strip ${WAR_TX_UNDERRUN}),0)
COPTS+= -DWAR_TX_UNDERRUN=1
endif

ifneq ($(strip ${ATH_SUPPORT_VOW_DCS}),0)
COPTS+= -DATH_SUPPORT_VOW_DCS=1
endif

ifneq ($(strip ${VOW_TIDSCHED}),0)
COPTS+= -DVOW_TIDSCHED=1
endif

ifneq ($(strip ${VOW_LOGLATENCY}),0)
COPTS+= -DVOW_LOGLATENCY=1
endif

ifneq ($(strip ${ATH_SUPPORT_CFEND}),0)
COPTS+= -DATH_SUPPORT_CFEND=1
endif

ifneq ($(strip ${ATH_VOW_EXT_STATS}),0)
COPTS+= -DATH_VOW_EXT_STATS=1
endif

ifeq ($(strip ${ATH_SUPPORT_LED}),1)
COPTS+= -DATH_SUPPORT_LED=1
ifneq ($(strip ${ATH_LED_CUSTOMER}),0)
COPTS+= -DATH_LED_CUSTOMER=${ATH_LED_CUSTOMER}
else
COPTS+= -DATH_LED_CUSTOMER=0
endif
ifneq ($(strip ${ATH_GPIO_OE_REG}),)
COPTS+= -DATH_GPIO_OE_REG=${ATH_GPIO_OE_REG}
COPTS+= -DATH_GPIO_OUT_REG=${ATH_GPIO_OUT_REG}
COPTS+= -DATH_GPIO_FUNC_REG=${ATH_GPIO_FUNC_REG}
COPTS+= -DATH_GPIO_PIN_2G=${ATH_GPIO_PIN_2G}
COPTS+= -DATH_GPIO_PIN_5G=${ATH_GPIO_PIN_5G}
endif
COPTS+= -DGPIO_PIN_FUNC_0=${GPIO_PIN_FUNC_0}
COPTS+= -DGPIO_PIN_FUNC_1=${GPIO_PIN_FUNC_1}
COPTS+= -DGPIO_PIN_FUNC_2=${GPIO_PIN_FUNC_2}
else
COPTS+= -DATH_SUPPORT_LED=0
endif

ifeq ($(strip ${OL_ATH_SUPPORT_LED}),1)
COPTS+= -DOL_ATH_SUPPORT_LED=1
COPTS+= -DOL_ATH_SUPPORT_LED_POLL=${OL_ATH_SUPPORT_LED_POLL}
else
COPTS+= -DOL_ATH_SUPPORT_LED=0
endif

ifneq ($(strip ${ATH_SUPPORT_GREEN_AP}),0)
COPTS+= -DATH_SUPPORT_GREEN_AP=1
endif


COPTS+= -DIEEE80211_USE_WPA_CCMP=1

ifeq ($(strip ${ATH_EXT_AP}),1)
COPTS+= -DATH_EXT_AP=1
#COPTS+= -DEXTAP_DEBUG=1
endif

ifneq ($(strip ${ATH_TX_BUF_FLOW_CNTL}),0)
COPTS+= -DATH_TX_BUF_FLOW_CNTL=1
endif

ifneq ($(strip ${ATH_TX_DROP_POLICY}),0)
COPTS+= -DATH_TX_DROP_POLICY=1
endif

ifneq ($(strip ${ATH_SUPPORT_QUICK_KICKOUT}),0)
COPTS+= -DATH_SUPPORT_QUICK_KICKOUT=1
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS}),0)
COPTS+= -DATH_SUPPORT_IBSS=1
else
COPTS+= -DATH_SUPPORT_IBSS=0
endif

ifneq ($(strip ${ATH_IBSS_DFS_CHANNEL_SUPPORT}),0)
COPTS+= -DATH_IBSS_DFS_CHANNEL_SUPPORT=1
else
COPTS+= -DATH_IBSS_DFS_CHANNEL_SUPPORT=0
endif

ifneq ($(strip ${ATH_SUPPORT_EDMA}),0)
COPTS+= -DATH_SUPPORT_EDMA=1
else
COPTS+= -DATH_SUPPORT_EDMA=0
endif

ifneq ($(strip ${UMAC_SUPPORT_AP_POWERSAVE}),0)
COPTS+= -DUMAC_SUPPORT_AP_POWERSAVE=1
else
COPTS+= -DUMAC_SUPPORT_AP_POWERSAVE=0
endif

ifneq ($(strip ${UMAC_SUPPORT_STA_POWERSAVE}),0)
COPTS+= -DUMAC_SUPPORT_STA_POWERSAVE=1
else
COPTS+= -DUMAC_SUPPORT_STA_POWERSAVE=0
endif

ifneq ($(strip ${UMAC_SUPPORT_POWERSAVE_QUEUE}),0)
COPTS+= -DUMAC_SUPPORT_POWERSAVE_QUEUE=1
else
COPTS+= -DUMAC_SUPPORT_POWERSAVE_QUEUE=0
endif

ifneq ($(strip ${LMAC_SUPPORT_POWERSAVE_QUEUE}),0)
COPTS+= -DLMAC_SUPPORT_POWERSAVE_QUEUE=1
else
COPTS+= -DLMAC_SUPPORT_POWERSAVE_QUEUE=0
endif

ifneq ($(strip ${ATH_FRAG_TX_COMPLETE_DEFER}),0)
COPTS+= -DATH_FRAG_TX_COMPLETE_DEFER=1
else
COPTS+= -DATH_FRAG_TX_COMPLETE_DEFER=0
endif

ifneq ($(strip ${UMAC_SUPPORT_CCMP_SW_CRYPTO}),0)
COPTS+= -DUMAC_SUPPORT_CCMP_SW_CRYPTO=1
else
COPTS+= -DUMAC_SUPPORT_CCMP_SW_CRYPTO=0
endif

ifneq ($(strip ${UMAC_SUPPORT_TKIP_SW_CRYPTO}),0)
COPTS+= -DUMAC_SUPPORT_TKIP_SW_CRYPTO=1
else
COPTS+= -DUMAC_SUPPORT_TKIP_SW_CRYPTO=0
endif

ifneq ($(strip ${ATH_SUPPORT_WEP_MBSSID}),0)
COPTS+= -DATH_SUPPORT_WEP_MBSSID=1
else
COPTS+= -DATH_SUPPORT_WEP_MBSSID=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RESMGR_SM}),0)
COPTS+= -DUMAC_SUPPORT_RESMGR_SM=1
else
COPTS+= -DUMAC_SUPPORT_RESMGR_SM=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RESMGR}),0)
COPTS+= -DUMAC_SUPPORT_RESMGR=1
else
COPTS+= -DUMAC_SUPPORT_RESMGR=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RESMGR_OC_SCHED}),0)
COPTS+= -DUMAC_SUPPORT_RESMGR_OC_SCHED=1
else
COPTS+= -DUMAC_SUPPORT_RESMGR_OC_SCHED=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RIJNDAEL}),0)
COPTS+= -DUMAC_SUPPORT_RIJNDAEL=1
else
COPTS+= -DUMAC_SUPPORT_RIJNDAEL=0
endif

ifneq ($(strip ${UMAC_SUPPORT_ACS}),0)
COPTS+= -DUMAC_SUPPORT_ACS=1
else
COPTS+= -DUMAC_SUPPORT_ACS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_WDS}),0)
COPTS+= -DUMAC_SUPPORT_WDS=1
else
COPTS+= -DUMAC_SUPPORT_WDS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_NAWDS}),0)
COPTS+= -DUMAC_SUPPORT_NAWDS=1
else
COPTS+= -DUMAC_SUPPORT_NAWDS=0
endif


ifneq ($(strip ${ATH_SUPPORT_TDLS}),0)
COPTS+= -DUMAC_SUPPORT_TDLS=1 -DATH_SUPPORT_TDLS=1
else
COPTS+= -DUMAC_SUPPORT_TDLS=0 -DATH_SUPPORT_TDLS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_TDLS_PEER_UAPSD}),0)
COPTS+= -DUMAC_SUPPORT_TDLS_PEER_UAPSD=1
else
COPTS+= -DUMAC_SUPPORT_TDLS_PEER_UAPSD=0
endif


ifneq ($(strip ${UMAC_SUPPORT_TDLS_CHAN_SWITCH}),0)
COPTS+= -DUMAC_SUPPORT_TDLS_CHAN_SWITCH=1
else
COPTS+= -DUMAC_SUPPORT_TDLS_CHAN_SWITCH=0
endif

ifneq ($(strip ${CONFIG_RCPI}),0)
COPTS+= -DCONFIG_RCPI=1
else
COPTS+= -DCONFIG_RCPI=0
endif

ifneq ($(strip ${UMAC_SUPPORT_STAFWD}),0)
COPTS+= -DUMAC_SUPPORT_STAFWD=1
else
COPTS+= -DUMAC_SUPPORT_STAFWD=0
endif

ifneq ($(strip ${UMAC_SUPPORT_DFS}),0)
COPTS+= -DUMAC_SUPPORT_DFS=1
else
COPTS+= -DUMAC_SUPPORT_DFS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_ACL}),0)
COPTS+= -DUMAC_SUPPORT_ACL=1
else
COPTS+= -DUMAC_SUPPORT_ACL=0
endif

ifneq ($(strip ${UMAC_SUPPORT_TX_FRAG}),0)
COPTS+= -DUMAC_SUPPORT_TX_FRAG=1
else
COPTS+= -DUMAC_SUPPORT_TX_FRAG=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RPTPLACEMENT}),0)
COPTS+= -DUMAC_SUPPORT_RPTPLACEMENT=1
else
COPTS+= -DUMAC_SUPPORT_RPTPLACEMENT=0
endif

ifneq ($(strip ${ATH_SUPPORT_WIFIPOS}),0)
COPTS+= -DATH_SUPPORT_WIFIPOS=1
COPTS+= -DUMAC_SUPPORT_WIFIPOS=1
COPTS+= -DUMAC_SUPPORT_WIFIPOS_LEANCC=1
else
COPTS+= -DATH_SUPPORT_WIFIPOS=0
COPTS+= -DUMAC_SUPPORT_WIFIPOS=0
COPTS+= -DUMAC_SUPPORT_WIFIPOS_LEANCC=0
endif

ifneq ($(strip ${UMAC_SUPPORT_IBSS}),0)
COPTS+= -DUMAC_SUPPORT_IBSS=1
else
COPTS+= -DUMAC_SUPPORT_IBSS=0
endif

ifneq ($(strip ${ATH_SUPPORT_WPA_SUPPLICANT_CHECK_TIME}),0)
COPTS+= -DATH_SUPPORT_WPA_SUPPLICANT_CHECK_TIME=1
endif

ifneq ($(strip ${UMAC_REPEATER_DELAYED_BRINGUP}),0)
COPTS+= -DUMAC_REPEATER_DELAYED_BRINGUP=1
else
COPTS+= -DUMAC_REPEATER_DELAYED_BRINGUP=0
endif

ifneq ($(strip ${ATH_SUPPORT_TxBF}),0)
COPTS+= -DATH_SUPPORT_TxBF=1
endif

ifneq ($(strip ${ATH_TxBF_DYNAMIC_LOF_ON_N_CHAIN_MASK}),0)
COPTS+= -DATH_TxBF_DYNAMIC_LOF_ON_N_CHAIN_MASK=1
endif

ifneq ($(strip ${ATHEROS_LINUX_PERIODIC_SCAN}),0)
COPTS+= -DATHEROS_LINUX_PERIODIC_SCAN=1
endif

ifneq ($(strip ${ATH_SUPPORT_P2P}),0)
COPTS+= -DATH_SUPPORT_P2P=1 -DUMAC_SUPPORT_P2P=1 -DATH_MOD64_SUPPORT=1
endif

ifneq ($(strip ${ATHEROS_LINUX_P2P_DRIVER}),0)
COPTS+= -DATHEROS_LINUX_P2P_DRIVER=1
endif

ifneq ($(strip ${ATHEROS_LINUX_PERIODIC_SCAN}),0)
COPTS+= -DATHEROS_LINUX_PERIODIC_SCAN=1
endif

ifneq ($(strip ${ATH_DEBUG}),0)
COPTS+= -DATH_DEBUG=1
endif

ifneq ($(strip ${UMAC_PER_PACKET_DEBUG}),0)
COPTS+= -DUMAC_PER_PACKET_DEBUG=1
endif

ifneq ($(strip ${ATH_GEN_TIMER}),0)
COPTS+= -DATH_GEN_TIMER=1
endif

ifneq ($(strip ${ATH_RX_LOOPLIMIT_TIMER}),0)
COPTS+= -DATH_RX_LOOPLIMIT_TIMER=1
endif

ifneq ($(strip ${ATH_SUPPORT_TSF_TIMER}),0)
COPTS+= -DATH_SUPPORT_TSF_TIMER=1
endif

ifneq ($(strip ${UMAC_SUPPORT_VAP_PAUSE}),0)
COPTS+= -DUMAC_SUPPORT_VAP_PAUSE=1
endif

ifneq ($(strip ${ATH_VAP_PAUSE_SUPPORT}),0)
COPTS+= -DATH_VAP_PAUSE_SUPPORT=1
endif

ifneq ($(strip ${UMAC_SUPPORT_IE_UTILS}),0)
COPTS+= -DUMAC_SUPPORT_IE_UTILS=1
endif

ifneq ($(strip ${UMAC_SUPPORT_TSF_TIMER}),0)
COPTS+= -DUMAC_SUPPORT_TSF_TIMER=1
endif

ifneq ($(strip ${UMAC_SUPPORT_P2P_GO_POWERSAVE}),0)
COPTS+= -DUMAC_SUPPORT_P2P_GO_POWERSAVE=1
endif

ifneq ($(strip ${ATH_BEACON_DEFERRED_PROC}),0)
COPTS+= -DATH_BEACON_DEFERRED_PROC
endif

ifneq ($(strip ${ATH_SUPPORT_TX_BACKLOG}),0)
COPTS+= -DATH_SUPPORT_TX_BACKLOG=1
else
COPTS+= -DATH_SUPPORT_TX_BACKLOG=0
endif

ifneq ($(strip ${ATH_DEBUG}),0)
COPTS+= -DATH_DEBUG=1
else
COPTS+= -DATH_DEBUG=0
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS_HT}),0)
COPTS+= -DATH_SUPPORT_IBSS_HT=1
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS_WMM}),0)
COPTS+= -DATH_SUPPORT_IBSS_WMM=1
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS_NETLINK_NOTIFICATION}),0)
COPTS+= -DATH_SUPPORT_IBSS_NETLINK_NOTIFICATION=1
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS_PRIVATE_SECURITY}),0)
COPTS+= -DATH_SUPPORT_IBSS_PRIVATE_SECURITY=1
endif

ifneq ($(strip ${ATH_SUPPORT_IBSS_ACS}),0)
COPTS+= -DATH_SUPPORT_IBSS_ACS=1
endif

ifneq ($(strip ${ATH_SUPPORT_AP_WDS_COMBO}),0)
COPTS+= -DATH_SUPPORT_AP_WDS_COMBO=1
else
COPTS+= -DATH_SUPPORT_AP_WDS_COMBO=0
endif

ifneq ($(strip ${REMOVE_PKT_LOG}),0)
COPTS+= -DREMOVE_PKT_LOG=1
endif

ifneq ($(strip ${UMAC_SUPPORT_BSSLOAD}),0)
COPTS+= -DUMAC_SUPPORT_BSSLOAD=1
else
COPTS+= -DUMAC_SUPPORT_BSSLOAD=0
endif

ifneq ($(strip ${UMAC_SUPPORT_ADMCTL}),0)
COPTS+= -DUMAC_SUPPORT_ADMCTL=1
else
COPTS+= -DUMAC_SUPPORT_ADMCTL=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RRM}),0)
COPTS+= -DUMAC_SUPPORT_RRM=1
else
COPTS+= -DUMAC_SUPPORT_RRM=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RRM_MISC}),0)
COPTS+= -DUMAC_SUPPORT_RRM_MISC=1
else
COPTS+= -DUMAC_SUPPORT_RRM_MISC=0
endif

ifneq ($(strip ${UMAC_SUPPORT_RRM_DEBUG}),0)
COPTS+= -DUMAC_SUPPORT_RRM_DEBUG=1
else
COPTS+= -DUMAC_SUPPORT_RRM_DEBUG=0
endif


ifneq ($(strip ${UMAC_SUPPORT_WNM}),0)
COPTS+= -DUMAC_SUPPORT_WNM=1
# STA need this for WNM-Sleep
ifeq ($(strip ${UMAC_SUPPORT_IE_UTILS}),0)
COPTS+= -DUMAC_SUPPORT_IE_UTILS=1
endif
else
COPTS+= -DUMAC_SUPPORT_WNM=0
endif

ifneq ($(strip ${UMAC_SUPPORT_QUIET}),0)
COPTS+= -DUMAC_SUPPORT_QUIET=1
else
COPTS+= -DUMAC_SUPPORT_QUIET=0
endif

ifneq ($(strip ${ATH_SUPPORT_ATHVAP_INFO}),0)
COPTS+= -DATH_SUPPORT_ATHVAP_INFO=1
else
COPTS+= -DATH_SUPPORT_ATHVAP_INFO=0
endif

ifneq ($(strip ${ATH_SUPPORT_LINUX_VENDOR}),0)
COPTS+= -DATH_SUPPORT_LINUX_VENDOR=1
endif

ifneq ($(strip ${ATH_RXBUF_RECYCLE}),0)
COPTS+= -DATH_RXBUF_RECYCLE=1
else
COPTS+= -DATH_RXBUF_RECYCLE=0
endif

ifneq ($(strip ${ATH_SUPPORT_IWSPY}),0)
COPTS+= -DATH_SUPPORT_IWSPY=1
endif

ifneq ($(strip ${NBUF_PREALLOC_POOL}),0)
COPTS+= -DNBUF_PREALLOC_POOL
endif

ifeq ($(strip ${ATH_SUPPORT_PAPRD}),1)
COPTS+= -DATH_SUPPORT_PAPRD=1
endif

ifeq ($(strip ${ATH_TRAFFIC_FAST_RECOVER}),1)
COPTS+= -DATH_TRAFFIC_FAST_RECOVER=1
endif

ifneq ($(strip ${ATH_SW_WOW_SUPPORT}),0)
COPTS+= -DATH_SW_WOW=1
endif

ifneq ($(strip ${UMAC_SUPPORT_VI_DBG}),0)
COPTS+= -DUMAC_SUPPORT_VI_DBG=1
endif

ifeq ($(strip ${ATH_SUPPORT_STATS_APONLY}),1)
COPTS+= -DATH_SUPPORT_STATS_APONLY=1
endif

ifeq ($(strip ${ATH_WDS_SUPPORT_APONLY}),1)
COPTS+= -DATH_WDS_SUPPORT_APONLY=1
endif

ifneq ($(strip ${ATH_SUPPORT_DYN_TX_CHAINMASK}),0)
COPTS+= -DATH_SUPPORT_DYN_TX_CHAINMASK=1
endif

ifneq ($(strip ${UMAC_SUPPORT_OPMODE_APONLY}),0)
COPTS+= -DUMAC_SUPPORT_OPMODE_APONLY=1
endif

ifeq ($(strip ${ATH_SUPPORT_IBSS_DFS}),1)
COPTS+= -DATH_SUPPORT_IBSS_DFS=1
endif


ifneq ($(strip ${ATH_TDLS_AUTO_CONNECT}),1)
COPTS+= -DATH_TDLS_AUTO_CONNECT=0
else
COPTS+= -DATH_TDLS_AUTO_CONNECT=1
endif

ifneq ($(strip ${USE_MULTIPLE_BUFFER_RCV}),0)
COPTS+= -DUSE_MULTIPLE_BUFFER_RCV=1
endif

ifdef IEEE80211_MAX_MPDU_LEN
COPTS+= -DIEEE80211_MAX_MPDU_LEN=${IEEE80211_MAX_MPDU_LEN}
endif

ifeq ($(strip ${ATH_SUPPORT_ANT_DIV_COMB}),1)
COPTS+= -DATH_ANT_DIV_COMB=1
endif


ifeq ($(strip ${MGMT_HTT_ENABLE}),1)
COPTS+= -DMGMT_HTT_ENABLE=1
endif

ifeq ($(strip ${ATH_SUPPORT_DESC_CACHABLE}),1)
COPTS+= -DATH_SUPPORT_DESC_CACHABLE=1
endif

ifeq ($(strip ${ATH_SUPPORT_FLOWMAC_MODULE}),1)
COPTS+= -DATH_SUPPORT_FLOWMAC_MODULE=1
endif

ifeq ($(strip ${ATH_SUPPORT_IBSS_DFS}),1)
COPTS+= -DATH_SUPPORT_IBSS_DFS=1
endif


ifeq ($(strip ${UMAC_SUPPORT_SMARTANTENNA}),1)
COPTS+= -DUMAC_SUPPORT_SMARTANTENNA=1
COPTS+= -DSA_DEFAULT_ANTENNA=${SA_DEFAULT_ANTENNA}
COPTS+= -DNUM_TX_CHAINS=${NUM_TX_CHAINS}
COPTS+= -DSA_NUMANT_PERCHAIN=${SA_NUMANT_PERCHAIN}
COPTS+= -DSA_11N_SUPPORT=${SA_11N_SUPPORT}

ifeq ($(strip ${ATH_SMARTANTENNA_ROUTE_SWCOM_TO_GPIO}),1)
COPTS+= -DATH_SMARTANTENNA_ROUTE_SWCOM_TO_GPIO=1
endif
ifndef SA_DEBUG
export SA_DEBUG=1
endif

ifeq ($(strip ${SA_DEBUG}),1)
COPTS+= -DSA_DEBUG=1
else
COPTS+= -DSA_DEBUG=0
endif

else
COPTS+= -DUMAC_SUPPORT_SMARTANTENNA=0
endif

ifeq ($(strip ${ATH_SUPPORT_IBSS_PERSTA_HWKEY}),1)
COPTS+= -DATH_SUPPORT_IBSS_PERSTA_HWKEY=1
endif

ifeq ($(strip ${ATH_SUPPORT_IBSS_WPA2}),1)
COPTS+= -DATH_SUPPORT_IBSS_WPA2=1
endif

ifeq ($(strip ${ATH_LMAC_TXSEQ}),1)
COPTS+= -DATH_LMAC_TXSEQ=1
endif

ifeq ($(strip ${ATH_SWRETRY}),1)
COPTS+= -DATH_SWRETRY=1
ifeq ($(strip ${ATH_SWRETRY_MODIFY_DSTMASK}),1)
COPTS+= -DATH_SWRETRY_MODIFY_DSTMASK=1
endif
endif

ifeq ($(strip ${ATH_SUPPORT_IBSS_WPA2}),1)
COPTS+= -DATH_SUPPORT_IBSS_WPA2=1
endif

ifneq ($(strip ${UMAC_SUPPORT_APONLY}),0)
COPTS+= -DUMAC_SUPPORT_APONLY=1
else
COPTS+= -DUMAC_SUPPORT_APONLY=0
endif
ifneq ($(strip ${ATH_TX_COMPACT}),0)
COPTS+= -DATH_TX_COMPACT=1
endif

ifneq ($(strip ${QCA_OL_TX_CACHEDHDR}),0)
COPTS+= -DQCA_OL_TX_CACHEDHDR=1
endif

ifeq ($(strip ${QCA_OL_VLAN_WAR}),1)
COPTS+= -DQCA_OL_VLAN_WAR=1
endif

ifeq ($(strip ${ATH_SUPPORT_TIDSTUCK_WAR}),1)
COPTS+= -DATH_SUPPORT_TIDSTUCK_WAR=1
else
COPTS+= -DATH_SUPPORT_TIDSTUCK_WAR=0
endif

ifneq ($(strip ${ATH_TXQ_BH_LOCK}),0)
COPTS+= -DATH_TXQ_BH_LOCK=1
else
COPTS+= -DATH_TXQ_BH_LOCK=0
endif

ifeq ($(strip ${ATH_BUS_PM}),1)
COPTS+= -DATH_BUS_PM=1
endif

ifeq ($(strip ${ATH_TX_DUTY_CYCLE}),1)
COPTS+= -DATH_TX_DUTY_CYCLE=1
endif

ifeq ($(strip ${ATH_SUPPORT_DSCP_OVERRIDE}), 1)
COPTS+= -DATH_SUPPORT_DSCP_OVERRIDE=1
endif


ifeq ($(strip ${ATH_ANI_NOISE_SPUR_OPT}),1)
COPTS+= -DATH_ANI_NOISE_SPUR_OPT=1
endif

ifneq ($(strip ${UMAC_SUPPORT_STA_STATS}),0)
COPTS+= -DUMAC_SUPPORT_STA_STATS=1
else
COPTS+= -DUMAC_SUPPORT_STA_STATS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_PERIODIC_PERFSTATS}),0)
COPTS+= -DUMAC_SUPPORT_PERIODIC_PERFSTATS=1
else
COPTS+= -DUMAC_SUPPORT_PERIODIC_PERFSTATS=0
endif

ifneq ($(strip ${UMAC_SUPPORT_CHANUTIL_MEASUREMENT}),0)
COPTS+= -DUMAC_SUPPORT_CHANUTIL_MEASUREMENT=1
else
COPTS+= -DUMAC_SUPPORT_CHANUTIL_MEASUREMENT=0
endif

ifeq ($(strip ${ATH_GEN_RANDOMNESS}),1)
COPTS+= -DATH_GEN_RANDOMNESS=1
else
COPTS+= -DATH_GEN_RANDOMNESS=0
endif

ifeq ($(strip ${UMAC_SUPPORT_PROXY_ARP}),1)
COPTS+= -DUMAC_SUPPORT_PROXY_ARP
endif

ifeq ($(strip ${UMAC_SUPPORT_DGAF_DISABLE}),1)
COPTS+= -DUMAC_SUPPORT_DGAF_DISABLE
endif

ifeq ($(strip ${UMAC_SUPPORT_HS20_L2TIF}),1)
COPTS+= -DUMAC_SUPPORT_HS20_L2TIF
endif

ifneq ($(strip ${ATH_SUPPORT_HS20}),0)
COPTS+= -DATH_SUPPORT_HS20=1
endif

ifneq ($(strip ${UMAC_SUPPORT_STA_MODE}),0)
COPTS+= -DUMAC_SUPPORT_STA_MODE=1
else
COPTS+= -DUMAC_SUPPORT_STA_MODE=0
endif

ifneq ($(strip ${UMAC_SUPPORT_TXDATAPATH_NODESTATS}),0)
COPTS+= -DUMAC_SUPPORT_TXDATAPATH_NODESTATS=1
else
COPTS+= -DUMAC_SUPPORT_TXDATAPATH_NODESTATS=0
endif

ifeq ($(strip ${QCA_PERF_PROFILING}),1)
export BUILD_ADF_PERF_PROFILING=1
COPTS+= -DQCA_PERF_PROFILING=1
ifeq ($(strip ${QCA_MIPS74K_PERF_PROFILING}),1)
COPTS+= -DQCA_MIPS74K_PERF_PROFILING=1
export BUILD_ADF_MIPS_PERF_PROFILING=1
endif
ifeq ($(strip ${QCA_MIPS24K_PERF_PROFILING}),1)
COPTS+= -DQCA_MIPS24K_PERF_PROFILING=1
export BUILD_ADF_MIPS_PERF_PROFILING=1
endif
endif
ifeq ($(strip ${HOST_WIFI}),1)
COPTS+= -DHOST_WIFI=1
endif

ifneq ($(strip ${UMAC_SUPPORT_ACFG}),0)
COPTS+= -DUMAC_SUPPORT_ACFG=1
else
COPTS+= -DUMAC_SUPPORT_ACFG=0
endif


ifneq ($(strip ${ATH_11AC_TXCOMPACT}),0)
COPTS+= -DATH_11AC_TXCOMPACT=1
else
COPTS+= -DATH_11AC_TXCOMPACT=0
endif

ifneq ($(strip ${QCA_NSS_NWIFI_MODE}),0)
COPTS+= -DQCA_NSS_NWIFI_MODE=1
else
COPTS+= -DQCA_NSS_NWIFI_MODE=0
endif

ifneq ($(strip ${QCA_OL_RX_BATCHMODE}),0)
COPTS+= -DQCA_OL_RX_BATCHMODE=1
else
COPTS+= -DQCA_OL_RX_BATCHMODE=0
endif

ifneq ($(strip ${ATH_PERF_PWR_OFFLOAD}),0)
COPTS+= -DATH_PERF_PWR_OFFLOAD=1
else
COPTS+= -DATH_PERF_PWR_OFFLOAD=0
endif

ifneq ($(strip ${ATH_OL_11AC_DMA_BURST}),0)
COPTS+= -DATH_OL_11AC_DMA_BURST=${ATH_OL_11AC_DMA_BURST}
else
COPTS+= -DATH_OL_11AC_DMA_BURST=0
endif

ifneq ($(strip ${ATH_OL_11AC_MAC_AGGR_DELIM}),0)
COPTS+= -DATH_OL_11AC_MAC_AGGR_DELIM=${ATH_OL_11AC_MAC_AGGR_DELIM}
else
COPTS+= -DATH_OL_11AC_MAC_AGGR_DELIM=0
endif

ifeq ($(strip $(ATH_HIF_TYPE)),sim)
COPTS+= -DA_SIMOS_DEVHOST -DHIF_SIM
endif

ifeq ($(strip $(ATH_HOST_RX_PHY_ERROR)), 1)
COPTS+= -DATH_HOST_RX_PHY_ERROR=1
else
COPTS+= -DATH_HOST_RX_PHY_ERROR=0
endif

ifeq ($(strip $(FORCE_LEGACY_PCI_INTERRUPTS)), 1)
COPTS+= -DFORCE_LEGACY_PCI_INTERRUPTS=1
endif

ifeq ($(strip $(LOAD_ARRAY_FW)), 1)
COPTS+= -DLOAD_ARRAY_FW=1
endif

ifeq ($(strip $(BIG_ENDIAN_HOST)), 1)
COPTS+= -DBIG_ENDIAN_HOST=1
endif

ifeq ($(strip $(AH_NEED_TX_DATA_SWAP)), 1)
COPTS+= -DAH_NEED_TX_DATA_SWAP=1
else
COPTS+= -DAH_NEED_TX_DATA_SWAP=0
endif

ifeq ($(strip $(AH_NEED_RX_DATA_SWAP)), 1)
COPTS+= -DAH_NEED_RX_DATA_SWAP=1
else
COPTS+= -DAH_NEED_RX_DATA_SWAP=0
endif

ifeq ($(strip $(AH_UNALIGNED_SUPPORTED)), 1)
COPTS+= -DAH_UNALIGNED_SUPPORTED=1
endif

ifeq ($(strip ${PERE_IP_HDR_ALIGNMENT_WAR}),1)
COPTS+= -DPERE_IP_HDR_ALIGNMENT_WAR=1
endif

ifeq ($(strip ${QCA_TX_SINGLE_COMPLETIONS}),1)
COPTS+= -DQCA_TX_SINGLE_COMPLETIONS=1
endif

ifeq ($(strip ${QCA_TX_STD_PATH_ONLY}),1)
COPTS+= -DQCA_TX_STD_PATH_ONLY=1
endif

ifneq ($(strip ${ATH_SUPPORT_WRAP}),0)
COPTS+= -DATH_SUPPORT_WRAP=1
else
COPTS+= -DATH_SUPPORT_WRAP=0
endif


ifneq ($(strip ${ATH_SUPPORT_WRAP_BRIDGE}),0)
COPTS+= -DATH_SUPPORT_WRAP_BRIDGE=1
else
COPTS+= -DATH_SUPPORT_WRAP_BRIDGE=0
endif

ifeq ($(strip ${WDS_VENDOR_EXTENSION}),1)
COPTS+= -DWDS_VENDOR_EXTENSION=1
endif
ifeq ($(strip ${UNIFIED_SMARTANTENNA}),1)
COPTS+= -DUNIFIED_SMARTANTENNA=1
COPTS+= -DATH_GPIOPIN_ANT_SERIAL_STROBE_RADIO1=${ATH_GPIOPIN_ANT_SERIAL_STROBE_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANT_SERIAL_STROBE_RADIO1=${ATH_GPIOFUNC_ANT_SERIAL_STROBE_RADIO1}

COPTS+= -DATH_GPIOPIN_ANT_SERIAL_DATA_RADIO1=${ATH_GPIOPIN_ANT_SERIAL_DATA_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANT_SERIAL_DATA_RADIO1=${ATH_GPIOFUNC_ANT_SERIAL_DATA_RADIO1}

COPTS+= -DATH_GPIOPIN_ANTCHAIN0_RADIO1=${ATH_GPIOPIN_ANTCHAIN0_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANTCHAIN0_RADIO1=${ATH_GPIOFUNC_ANTCHAIN0_RADIO1}

COPTS+= -DATH_GPIOPIN_ANTCHAIN1_RADIO1=${ATH_GPIOPIN_ANTCHAIN1_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANTCHAIN1_RADIO1=${ATH_GPIOFUNC_ANTCHAIN1_RADIO1}

COPTS+= -DATH_GPIOPIN_ANTCHAIN2_RADIO1=${ATH_GPIOPIN_ANTCHAIN2_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANTCHAIN2_RADIO1=${ATH_GPIOFUNC_ANTCHAIN2_RADIO1}

COPTS+= -DATH_GPIOPIN_ANTCHAIN3_RADIO1=${ATH_GPIOPIN_ANTCHAIN3_RADIO1}
COPTS+= -DATH_GPIOFUNC_ANTCHAIN3_RADIO1=${ATH_GPIOFUNC_ANTCHAIN3_RADIO1}
endif

ifeq ($(strip ${ATH_VAP_DELETE_ON_RMMOD}),1)
COPTS+= -DATH_VAP_DELETE_ON_RMMOD=1
else
COPTS+= -DATH_VAP_DELETE_ON_RMMOD=0
endif

ifneq ($(strip ${QCA_OL_11AC_FAST_PATH}),0)
COPTS+= -DQCA_OL_11AC_FAST_PATH=1
else
COPTS+= -DQCA_OL_11AC_FAST_PATH=0
endif

ifneq ($(strip ${QCA_OL_SMP_STATS}),0)
COPTS+= -DQCA_OL_SMP_STATS=1
else
COPTS+= -DQCA_OL_SMP_STATS=0
endif

ifneq ($(strip ${ATH_SUPPORT_DEFERRED_NODE_CLEANUP}),0)
COPTS+= -DATH_SUPPORT_DEFERRED_NODE_CLEANUP=1
else
COPTS+= -DATH_SUPPORT_DEFERRED_NODE_CLEANUP=0
endif
ifeq ($(strip ${ATH_SUPPORT_KEYPLUMB_WAR}),1)
COPTS+= -DATH_SUPPORT_KEYPLUMB_WAR=1
else
COPTS+= -DATH_SUPPORT_KEYPLUMB_WAR=0
endif

ifneq ($(strip ${QCA_NSS_PLATFORM}),0)
COPTS+= -DQCA_NSS_PLATFORM=1
else
COPTS+= -DQCA_NSS_PLATFORM=0
endif

ifeq ($(strip ${UMAC_SUPPORT_VOWDBG}),1)
COPTS+= -DUMAC_VOW_DEBUG=1
endif

ifdef ATH_24G_LED_GPIO
COPTS+= -DATH_24G_LED_GPIO=${ATH_24G_LED_GPIO}
endif

ifneq ($(strip ${RX_DEBUG}),0)
COPTS+= -DRX_DEBUG=1
endif

ifeq ($(strip ${DUMP_FW_RAM}),1)
COPTS+= -DDUMP_FW_RAM=1
else
COPTS+= -DDUMP_FW_RAM=0
endif

ifdef DBGLOG_WQ_BASED
COPTS+= -DDBGLOG_WQ_BASED=${DBGLOG_WQ_BASED}
endif

ifneq ($(strip ${HTT_RX_DESC_ALIGN_RESERVED}),0)
COPTS+= -DHTT_RX_DESC_ALIGN_RESERVED=${HTT_RX_DESC_ALIGN_RESERVED}
else
COPTS+= -DHTT_RX_DESC_ALIGN_RESERVED=0
endif

ifneq ($(strip ${ATH_SUPPORT_CE_BARRIER}),0)
COPTS+= -DATH_SUPPORT_CE_BARRIER=1
else
COPTS+= -DATH_SUPPORT_CE_BARRIER=0
endif

ifneq ($(strip ${LIMIT_RXBUF_LEN_4K}),0)
COPTS+= -DLIMIT_RXBUF_LEN_4K=1
else
COPTS+= -DLIMIT_RXBUF_LEN_4K=0
endif

ifeq ($(strip ${ATH_USE_NCNB}),1)
COPTS+= -DATH_USE_NCNB=1
endif

ifneq ($(strip ${ATH_COMCERTO_CUSTOM_SKB_OFFSET}),0)
COPTS+= -DATH_COMCERTO_CUSTOM_SKB_OFFSET=$(ATH_COMCERTO_CUSTOM_SKB_OFFSET)
else
COPTS+= -DATH_COMCERTO_CUSTOM_SKB_OFFSET=0
endif

ifeq ($(strip ${ATH_SUPPORT_MSI}),1)
COPTS+= -DATH_SUPPORT_MSI=1
endif

ifneq ($(strip ${QCA_OL_SUPPORT_RAWMODE_TXRX}),0)
COPTS+= -DQCA_OL_SUPPORT_RAWMODE_TXRX=1
else
COPTS+= -DQCA_OL_SUPPORT_RAWMODE_TXRX=0
endif

ifeq ($(strip ${QCA_RAWMODE_OPTIMIZATION_CONFIG}),2)
COPTS+= -DQCA_RAWMODE_OPTIMIZATION_CONFIG=2
else ifeq ($(strip ${QCA_RAWMODE_OPTIMIZATION_CONFIG}),1)
COPTS+= -DQCA_RAWMODE_OPTIMIZATION_CONFIG=1
else
COPTS+= -DQCA_RAWMODE_OPTIMIZATION_CONFIG=0
endif

ifneq ($(strip ${QCA_SUPPORT_RAWMODE_PKT_SIMULATION}),0)
COPTS+= -DQCA_SUPPORT_RAWMODE_PKT_SIMULATION=1
else
COPTS+= -DQCA_SUPPORT_RAWMODE_PKT_SIMULATION=0
endif

ifneq ($(strip ${PCI_INTERRUPT_WAR_ENABLE}),0)
COPTS+= -DPCI_INTERRUPT_WAR_ENABLE=1
else
COPTS+= -DPCI_INTERRUPT_WAR_ENABLE=0
endif

ifneq ($(strip ${QCA_BMI_TIMEOUT_CHECK}),0)
COPTS+= -DQCA_BMI_TIMEOUT_CHECK=1
else
COPTS+= -DQCA_BMI_TIMEOUT_CHECK=0
endif

ifeq ($(strip ${ATH_BAND_STEERING}),1)
COPTS+= -DATH_BAND_STEERING=1
else
COPTS+= -DATH_BAND_STEERING=0
endif

ifeq ($(strip ${QCA_AIRTIME_FAIRNESS}),1)
COPTS+= -DQCA_AIRTIME_FAIRNESS=1
else
COPTS+= -DQCA_AIRTIME_FAIRNESS=0
endif
